simulinkFileName="LoadSettingTest/";
loadpq=xlsread("日负荷曲线PQ.xlsx");
loadpqT=loadpq';
p=loadpqT(1,:)*1000;
q=loadpqT(2,:)*1000;
set_param(simulinkFileName+"PData",'OutValues',mat2str(p));
set_param(simulinkFileName+"QData",'OutValues',mat2str(q));